home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / angelpang.swf / scripts / frame_11 / PlaceObject2_267_874 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  2.1 KB  |  85 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.move_play)
  3.    {
  4.       if(ishit)
  5.       {
  6.          if(this._x > 632 || this._x < 0)
  7.          {
  8.             ishit = false;
  9.             this.play();
  10.          }
  11.          if(this.hit.hitTest(_parent.hero.Hit))
  12.          {
  13.             trace("hit14");
  14.             _parent.canPlay = false;
  15.             _parent.player_move = false;
  16.             _parent.hero.gotoAndStop("die");
  17.          }
  18.          g += _parent.GGG;
  19.          this._x += speedX;
  20.          sn = Math.abs(Math.cos(3.141592653589793 * g / 180));
  21.          this._y = _parent.Hit._y + 45 - sn * dis;
  22.          if(g % 360 == 90 || g % 360 == 270)
  23.          {
  24.             dis = 120;
  25.          }
  26.          if(this.hitTest(_parent.hit_L))
  27.          {
  28.             trace("hitLLLLLLLLLLLLLLL");
  29.             speedX = 3 + zzz_num;
  30.          }
  31.          if(this.hitTest(_parent.hit_R))
  32.          {
  33.             trace("hitRRRRRRRRRR");
  34.             speedX = -3 + (- zzz_num);
  35.          }
  36.       }
  37.    }
  38.    if(Att_hit)
  39.    {
  40.       if(this.hitTest(_parent.arrow_1.hit))
  41.       {
  42.          trace("16");
  43.          _parent.arrow_1.gotoAndStop(1);
  44.          this.play();
  45.          ishit = false;
  46.       }
  47.       if(this.hitTest(_parent.arrow_2.hit))
  48.       {
  49.          _parent.arrow_2.gotoAndStop(1);
  50.          this.play();
  51.          ishit = false;
  52.       }
  53.       if(this.hitTest(_parent.arrow_3.hit))
  54.       {
  55.          _parent.arrow_3.gotoAndStop(1);
  56.          this.play();
  57.          ishit = false;
  58.       }
  59.       if(this.hitTest(_parent.arrow_4.hit))
  60.       {
  61.          _parent.arrow_4.gotoAndStop(1);
  62.          this.play();
  63.          ishit = false;
  64.       }
  65.       if(this.hitTest(_parent.arrow_5.hit))
  66.       {
  67.          _parent.arrow_5.gotoAndStop(1);
  68.          this.play();
  69.          ishit = false;
  70.       }
  71.       if(this.hitTest(_parent.arrow_7.hit))
  72.       {
  73.          _parent.arrow_7.gotoAndStop(1);
  74.          this.play();
  75.          ishit = false;
  76.       }
  77.       if(this.hitTest(_parent.arrow_8.hit))
  78.       {
  79.          _parent.arrow_8.gotoAndStop(1);
  80.          this.play();
  81.          ishit = false;
  82.       }
  83.    }
  84. }
  85.